#include "storage.h"
#include <iostream>
#include <string>

using namespace std;

	employee_base::employee_base(const string& name, const string& employee_ID, const string& department_ID) : name(name), employee_ID(employee_ID), department_ID(department_ID) {}


	void employee_base::set_name(const std::string& name) {
		this->name = name;
	}

	void employee_base::set_employee_ID(const std::string& employee_ID) {
		this->employee_ID = employee_ID;
	}

	void employee_base::set_department_ID(const std::string& department_ID) {
		this->department_ID = department_ID;
	}

	string employee_base::get_name()const {
		return this->name;
	}

	string employee_base::get_employee_ID()const {
		return this->employee_ID;
	}

	string employee_base::get_department_ID()const {
		return this->department_ID;
	}

	//virtual void duty() = 0;


//class manager : public employee_base {
//public:
	manager::manager(const string& name, const string& employee_ID, const string& department_ID) : employee_base(name, employee_ID, department_ID) {}

	void manager::duty()  {
		cout << "Manager duty" << endl;
	}
//};

//class employee : public employee_base {
//public:
	employee::employee(const string& name, const string& employee_ID, const string& department_ID) : employee_base(name, employee_ID, department_ID) {}

	void employee::duty() {
		cout << "Employee duty" << endl;
	}
//};

//class boss : public employee_base {
//public:
	boss::boss(const string& name, const string& employee_ID, const string& department_ID) : employee_base(name, employee_ID, department_ID) {}

	void boss::duty()  {
		cout << "Boss duty" << endl;
	}
//};